package com.yijinsuo.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.yijinsuo.R;
import com.yijinsuo.base.BaseActivity;
import com.yijinsuo.view.TitleBar;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 真实姓名
 */
public class ZhenShiNameActivity extends BaseActivity {

    @Bind(R.id.titlebar)
    TitleBar titlebar;
    @Bind(R.id.et_name)
    TextView etName;
    @Bind(R.id.et_card_number)
    TextView etCardNumber;

    //
    private  String realName;
    private  String cardNum;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_zhen_shi_name);
        ButterKnife.bind(this);
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void initTitle() {
        titlebar.setTitleBar(R.drawable.back_selector, "实名认证", 0);
    }

    @Override
    protected void initView() {
        realName=getIntent().getStringExtra("realName");
        cardNum=getIntent().getStringExtra("cardNum");
    }

    @Override
    protected void setData() {
        etName.setText(realName);
        etCardNumber.setText(cardNum);
    }

    @OnClick({R.id.titlebar_iv_back, R.id.tv_renzheng})
    @Override
    public void widgetClick(View v) {

        switch (v.getId()) {
            case R.id.titlebar_iv_back:

                finish();


                break;

            case R.id.tv_renzheng:


                break;
            default:
        }
    }
}
